import axios from "~/axios";
import { queryParams } from "~/composables/util";

export function getComment(page, query = {}) {
  let r = queryParams(query);
  return axios.get(`/comment?page=${page}${r}`);
}

export function updateComment(id, data) {
  return axios.put(`/comment/${id}`, data);
}
